<?php

namespace App\Models\SystemManagement;

use App\Models\CommonModel;
use App\Models\Constant\Errors;
use App\Models\Error;
use Illuminate\Database\Eloquent\Model;

class Banci extends Model
{
    protected $table = 'bancis';
    protected $primaryKey = 'id';
    protected $guarded = [];
    protected $hidden = ['deleted_at','created_at','updated_at'];

    /**
     * @param $data
     * @return Error
     * 添加班次
     */
    static function saveData($data){
        $param = self::create($data);
        return $param;
    }
}